﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TaskQuery.aspx.cs" Inherits="WMS6.Web.TaskMgmt.TaskQuery" meta:resourcekey="Page" %>

<%@ Register src="../UserControls/MultipleSelectControl.ascx" tagname="MultipleSelectControl" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
  <title>TaskQuery</title>
     <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
   <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
        
        //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblReceiptQuery" runat="server" Text="任务查询" CssClass="hover" 
                    meta:resourcekey="lblReceiptQuery"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
         </div>
            <div id="div_query">
            <table width="580px" cellpadding="0" cellspacing="0" >
                <tr>
                    <td style="width:180px">
                        <asp:Label CssClass="label" ID="lblTaskDetailID" runat="server" Text="任务编号" 
                            meta:resourcekey="lblTaskDetailID"></asp:Label>
                    </td>
                    <td style="width:30px">
                        &nbsp;
                    </td>
                    <td style="width:160px">
                     &nbsp;
                    </td>
                    <td style="width:200px"></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtTaskDetailID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtTaskDetailID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlTaskDetailID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlTaskDetailID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblTaskType" runat="server" Text="任务类型" 
                            meta:resourcekey="lblTaskType"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    <uc1:MultipleSelectControl ID="MSCTaskType" runat="server" /> 
                       <%-- <asp:DropDownList ID="ddlTaskType" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlTaskType"></asp:DropDownList>--%>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlTaskTypeOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlTaskTypeOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblPriority" runat="server" Text="优先级" 
                            meta:resourcekey="lblPriority"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtPriority" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtPriority"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPriority" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlPriority">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblSkuID" runat="server" Text="货品" 
                            meta:resourcekey="lblSkuID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtSkuID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSkuID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlSkuID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblQty" runat="server" Text="数量" 
                            meta:resourcekey="lblQty"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtQty" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtQty"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlQty" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlQty">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblFromLoc" runat="server" Text="自货位" 
                            meta:resourcekey="lblFromLoc"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtFromLoc" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtFromLoc"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlFromLoc" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlFromLoc">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblToLoc" runat="server" Text="至货位" 
                            meta:resourcekey="lblToLoc"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtToLoc" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtToLoc"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlToLoc" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlToLoc">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblFromLpnID" runat="server" Text="自LPN" 
                            meta:resourcekey="lblFromLpnID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtFromLpnID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtFromLpnID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlFromLpnID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlFromLpnID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblToLpnID" runat="server" Text="至LPN" 
                            meta:resourcekey="lblToLpnID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtToLpnID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtToLpnID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlToLpnID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlToLpnID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                 
                 <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblUserID" runat="server" Text="用户" 
                            meta:resourcekey="lblUserID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtUserID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtUserID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlUserID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlUserID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                  <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblBeginTime" runat="server" Text="开始时间" 
                            meta:resourcekey="lblBeginTime"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtBeginTime" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtBeginTime"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img1" runat="server" onclick="setday(this,txtBeginTime)"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlBeginTime" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" 
                            meta:resourcekey="ddlBeginTime">
                        </asp:DropDownList>
                    </td>
                     <td>
                        <div style="display:none;" id="div1">
                            <asp:TextBox ID="txtBeginTime2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtBeginTime2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtBeginTime2)"/>
                        </div>
                     </td>                    
                </tr>
                     <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblEndTime" runat="server" Text="结束时间" 
                            meta:resourcekey="lblEndTime"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtEndTime" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtEndTime"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="imgEndTime" runat="server" onclick="setday(this,txtEndTime)"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlEndTime" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div2,img3);" 
                            meta:resourcekey="ddlEndTime">
                        </asp:DropDownList>
                    </td>
                    <td>   
                        <div style="display:none;" id="div2">
                            <asp:TextBox ID="txtEndTime2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtEndTime2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img3" runat="server" onclick="setday(this,txtEndTime2)"/>
                        </div>
                    </td> 
                </tr>
                
            </table>
        </div>
        
        
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button"  
                            OnClick="btnSearch_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" Text="<%$Resources:ButtonResource,btnNew%>" CssClass="button" 
                            OnClientClick="javascript:window.location.href='Task.aspx?from=query';return false;"  />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" 
                            OnClientClick="javascript:window.location.href='TaskList.aspx?from=list';return false;"  />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button"  
                            OnClientClick="javascript:window.location.href='TaskList.aspx?from=query&export=y';return false;"  />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat"  runat="server"/>  
<input type="hidden" id="hdncalendarFlag"  runat="server"/>  


    </div>
    <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />
    <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>    
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>


